﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace CTP.Util
{
    public class AssertUtil
    {
        public static void AreEqual(byte[] expected, byte[] actual)
        {
            Assert.AreEqual(expected.Length, actual.Length,"The lengths of byte array differ.");

            for (int i = 0; i < expected.Length; i++)
            {
                Assert.AreEqual(expected[i], actual[i], "The values of byte arrays differ at index: "+i);
            }
        }
    }
}
